/// WriteoffOrderHisStatisticsPageRequestDto
class WriteoffOrderHisStatisticsPageRequestDto {
  /// 当前页 默认 1
  final int? pageNum;
  /// 每页记录数 默认 10
  final int? pageSize;
  /// 卡种类ID
  final int? cardTypeId;
  /// 卡分类ID
  final int? cardCategoryId;
  /// 核销人
  final String? writeoffBy;
  /// 核销日期-开始
  final String? writeoffTimeBegin;
  /// 核销日期-截止
  final String? writeoffTimeEnd;
  /// 核销结果，1通过，0拒绝
  final int? writeoffResult;

  WriteoffOrderHisStatisticsPageRequestDto({
    this.pageNum,
    this.pageSize,
    this.cardTypeId,
    this.cardCategoryId,
    this.writeoffBy,
    this.writeoffTimeBegin,
    this.writeoffTimeEnd,
    this.writeoffResult,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (pageNum != null) data['pageNum'] = pageNum;
    if (pageSize != null) data['pageSize'] = pageSize;
    if (cardTypeId != null) data['cardTypeId'] = cardTypeId;
    if (cardCategoryId != null) data['cardCategoryId'] = cardCategoryId;
    if (writeoffBy != null) data['writeoffBy'] = writeoffBy;
    if (writeoffTimeBegin != null) data['writeoffTimeBegin'] = writeoffTimeBegin;
    if (writeoffTimeEnd != null) data['writeoffTimeEnd'] = writeoffTimeEnd;
    if (writeoffResult != null) data['writeoffResult'] = writeoffResult;
    return data;
  }

  factory WriteoffOrderHisStatisticsPageRequestDto.fromJson(Map<String, dynamic> json) {
    return WriteoffOrderHisStatisticsPageRequestDto(
      pageNum: json['pageNum'],
      pageSize: json['pageSize'],
      cardTypeId: json['cardTypeId'],
      cardCategoryId: json['cardCategoryId'],
      writeoffBy: json['writeoffBy'],
      writeoffTimeBegin: json['writeoffTimeBegin'],
      writeoffTimeEnd: json['writeoffTimeEnd'],
      writeoffResult: json['writeoffResult'],
    );
  }
}